package com.powersystem.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrongji
 * @since 2019-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PS_INSPECTIONTASK_MAIN")
public class PsInspectiontaskMain extends Model<PsInspectiontaskMain> {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("PS__ID")
    private Long psId;

    @TableField("INSPECTIONTASKCODE")
    private String inspectiontaskcode;

    @TableField("INSPECTIONTASKNAME")
    private String inspectiontaskname;

    @TableField("LINEID")
    private Long lineid;

    @TableField("LINECODE")
    private String linecode;

    @TableField("LINENAME")
    private String linename;

    @TableField("STARTPOLE")
    private Long startpole;

    @TableField("STARTPOLECODE")
    private String startpolecode;

    @TableField("ENDPOLE")
    private Long endpole;

    @TableField("ENDPOLECODE")
    private String endpolecode;

    @TableField("ISSUEDBYCODE")
    private String issuedbycode;

    @TableField("ISSUEDBYNAME")
    private String issuedbyname;

    @TableField("ISSUEDTIME")
    private LocalDateTime issuedtime;

    @TableField("TASKSTATUS")
    private Long taskstatus;

    @TableField("TASKSTATUSNAME")
    private String taskstatusname;

    @TableField("FINISHTIME")
    private LocalDateTime finishtime;

    @TableField("COMMON")
    private String common;

    @TableField("CREATIONTIME")
    private LocalDateTime creationtime;

    @TableField("CREATEDBY")
    private String createdby;

    @TableField("LASTUPDATETIME")
    private LocalDateTime lastupdatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
